package xiangmu.schoolpaper;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
@ServletComponentScan//启动时扫描过滤器
@MapperScan("xiangmu.schoolpaper.mapper")
public class SchoolPaperApplication {

	public static void main(String[] args) {
		SpringApplication.run(SchoolPaperApplication.class, args);
	}

}
